﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PullManage.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.SystemManage.PullManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>抽油机数据管理</title>
    <link href="../../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script src="../../js/changerows.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'chkall' && e.type == 'checkbox')
                    e.checked = form.chkall.checked;
            }
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" style="height: 25px">
                    <img src="../images/module.gif" width="20" alt="" /></td>
                <td style="width: 232px; height: 25px;">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="80%" align="right" style="height: 25px">
                    <img src="../images/search.gif" alt="搜索" />抽油机号：<asp:TextBox ID="txtPUUID" runat="server"
                        CssClass="input1"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" CausesValidation="False"
                        OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" 
            Width="99%" CssClass="gridview" RowStyle-HorizontalAlign="center" 
            EmptyDataText="没有数据" OnRowDataBound="GvData_RowDataBound" AllowPaging="True" 
            PageSize="20" onpageindexchanging="gvData_PageIndexChanging">
            <Columns>
            <%--<asp:BoundField DataField="PULLID" HeaderText="抽油机ID"/>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="lblXH" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>--%>
                <asp:BoundField DataField="CYJXH" HeaderText="抽油机型号">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="CYJLB" HeaderText="抽油机类别">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="SCCJ" HeaderText="生产厂家">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="XDEDZH" HeaderText="悬点额定载荷">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="GGZDCC" HeaderText="光杆最大冲程" >
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="GGZDCCI" HeaderText="光杆最大冲次" >
                    <HeaderStyle Width="120px" />
                </asp:BoundField>
                <asp:BoundField DataField="JSQEDNJ" HeaderText="减速器额定扭矩" >
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="JSQXSDH" HeaderText="减速器型式代号">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="PHFS" HeaderText="平衡方式">
                    <HeaderStyle Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="LGC" HeaderText="连杆长">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="QBC" HeaderText="前臂长">
                    <HeaderStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="HBC" HeaderText="后臂长">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="QBZL" HeaderText="曲柄重量">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="QBZXBJ" HeaderText="曲柄重心半径">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="QBZX" HeaderText="曲柄转向">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="PDXHGG" HeaderText="皮带型号规格">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="PHKSL" HeaderText="平衡块数量">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="JSB" HeaderText="减速比">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="ZJZL" HeaderText="整机重量">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="ZJCC" HeaderText="整机尺寸">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="JNCYJ" HeaderText="节能抽油机">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="SCFS" HeaderText="刹车方式">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>
                 <asp:BoundField DataField="JXFLM" HeaderText="机型分类码">
                    <HeaderStyle Width="110px" />
                </asp:BoundField>


                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("PULLID") %>' OnClick="lnkbtnEdit_Click">修改</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckFlag" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right">
                    <input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="on" /><font
                        color="#FF0000">全选</font>&nbsp;
                    <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="submit" CausesValidation="False" OnClick="btnAdd_Click" />&nbsp;<asp:Button ID="btnDel" runat="server" Text="删除" CssClass="submit" OnClientClick="return confirm('确定要删除吗?')" OnClick="btnDel_Click" />
                    
                </td>
            </tr>
        </table>
        <p>
            <asp:Label ID="lblMsg" runat="server" Text=""></asp:Label>&nbsp;
        </p>
    </form>
</body>
</html>

<script type="text/javascript" language="javascript">
    //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
    senfe("gvData", "#ECF9FC", "#FFFFFF", "#D6F1F8");
</script>
